package com.giteelou.gitee.sdjl01.repo;

import com.giteelou.gitee.sdjl01.entity.Order;
import com.giteelou.gitee.sdjl01.entity.SubOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SubOrderRepository extends JpaRepository<SubOrder, Long> {

    List<SubOrder> findAllByOrder(Order order);

}